import request from '@/utils/request'

// 查询派出单位管理列表
export function listGrcompany(query) {
  return request({
    url: '/grant/grcompany/list',
    method: 'get',
    params: query
  })
}

// 查询派出单位管理详细
export function getGrcompany(id) {
  return request({
    url: '/grant/grcompany/' + id,
    method: 'get'
  })
}

// 新增派出单位管理
export function addGrcompany(data) {
  return request({
    url: '/grant/grcompany',
    method: 'post',
    data: data
  })
}

// 修改派出单位管理
export function updateGrcompany(data) {
  return request({
    url: '/grant/grcompany',
    method: 'put',
    data: data
  })
}

// 删除派出单位管理
export function delGrcompany(id) {
  return request({
    url: '/grant/grcompany/' + id,
    method: 'delete'
  })
}

// 导出派出单位管理
export function exportGrcompany(query) {
  return request({
    url: '/grant/grcompany/export',
    method: 'get',
    params: query
  })
}
// 查询派出单位列表不分页
export function getCompanyList(query) {
  return request({
    url: '/grant/grcompany/getCompanyList',
    method: 'get',
    params: query
  })
}
// 派出单位报名人数统计
export function getUserCompanyPanelData(query) {
  return request({
    url: '/grant/grcompany/getUserCompanyPanelData',
    method: 'post',
    params: query
  })
}
export function downloadConfirmfile(query){
  return request({
    url: '/grant/grcompany/downloadConfirmfile',
    method: 'post',
    params: query
  })
}
export function getCompanyImportTemplate() {
  return request({
    url: '/grant/grcompany/getCompanyImportTemplate',
    method: 'get',
    params: {}
  })
}

// 导出派出单位信息
export function userCompanyPanelexport(query) {
  return request({
    url: '/grant/grcompany/userCompanyPanelexport',
    method: 'get',
    params: query
  })
}

